

(function () {
    // all from session of old-project;
// 数据请求
    setTimeout(()=>{
        if(!sessionStorage.getItem('linesDataa')){
            $.ajax({
                url:'/getAirportOnLineData_1',
                type:'get',
                dataType:'jsonp',
                success:(res)=>{
                    var _data = res;
                    $.ajax({
                        url:'/getAirportOnLineData_2',
                        type:'get',
                        dataType:'jsonp',
                        success:(ares)=>{
                            $.ajax({
                                url:'/getAirportOnLineData_3',
                                type:'get',
                                dataType:'jsonp',
                                success:(bres)=>{
                                    var _linesData = { success: $.extend({}, ares.success, _data.success, bres.success) };
                                    sessionStorage.setItem('linesDataa',JSON.stringify(_linesData));
                                }
                            })
                        }
                    })
                }
            });
        }
        $.ajax({
            url:'/restful/getCityDatas',
            type:'get',
            dataType:'jsonp',
            success:(data)=>{
                sessionStorage.setItem('cityData',JSON.stringify(data.success.cityData));
            }
        }) ;
        $.ajax({
            url:'/restful/getShippingDatas',
            type:'get',
            dataType:'jsonp',
            success:(data)=>{
                sessionStorage.setItem('department',JSON.stringify(data.success.cityData));
            }
        });
        $.ajax({
            url:'/restful/getAirportJosnDatas',
            type:'get',
            dataType:'jsonp',
            success:(data)=>{
                sessionStorage.setItem('airportData',JSON.stringify(data.success.cityData));
            }
        });
        if(sessionStorage.getItem('airjw')){
        }else{
            $.ajax({
                url:'/getAirportViewData',
                type:'get',
                dataType:'jsonp',
                success:(data)=>{
                    sessionStorage.setItem('airjw',JSON.stringify(data));
                }
            });
        }
    },5000)
//   机场点数据
})()